package com.huawei.hms.support.api.pay;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.entity.pay.PurchaseInfoResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiPayApiImpl$c extends PendingResultImpl<PurchaseInfoResult, PurchaseInfoResp> {
    public final /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        PurchaseInfoResp purchaseInfoResp = (PurchaseInfoResp) iMessageEntity;
        if (purchaseInfoResp == null) {
            HMSLog.e("HuaweiPayApiImpl", "order resp is null or orderResp.returnCode is null");
            return null;
        }
        HMSLog.i("HuaweiPayApiImpl", "getPurchaseInfo resp :" + purchaseInfoResp.getRtnCode());
        return new PurchaseInfoResult(purchaseInfoResp);
    }

    public HuaweiPayApiImpl$c(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }
}
